<template>
	<view class="colony-page">
		<view class="module">
			<view class="total">
				<view>
					算力模块总量
				</view>
				<view class="benefit">
					集群收益：XXX CBU
				</view>
			</view>
			<view class="num">
				<text>100</text>台
			</view>
			<view class="line"></view>
			<view class="usdt">
				<view class="usdt-item">
					<view class="item-text">
						集群算力值(USDT)
					</view>
					<view class="item-num">
						120.0212
					</view>
				</view>
				<view class="usdt-item">
					<view class="item-text">
						爆块算力(USDT))
					</view>
					<view class="item-num">
						235.2356
					</view>
				</view>
			</view>
		</view>
		<view class="circle">
			<view class="circle-item" @click="gonavto('/pages/my/colony/detail?type=1')">
				<view class="item-title">
					核心算力圈
				</view>
				<view class="survey">
					查看详情
				</view>
			</view>
			<view class="circle-item" @click="gonavto('/pages/my/colony/detail?type=2')">
				<view class="item-title">
					辅助算力圈
				</view>
				<view class="survey">
					查看详情
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods:{
			gonavto(url){
				uni.navigateTo({
					url:url
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.colony-page {
		padding: 30rpx;
		color: #ffffff;

		.module {
			background-image: url('/static/my/module-bg.png');
			background-repeat: no-repeat;
			background-size: 100% 100%;
			padding: 30rpx;
			border-radius: 30rpx;
			.total {
				display: flex;
				justify-content: space-between;
				align-items: center;
				font-size: 28rpx;
				.benefit {
					font-size: 24rpx;
					background-color: rgba(255, 255, 255, .25);
					padding: 10rpx 20rpx;
					border-radius: 30rpx;
				}
			}
			.num {
				margin-top: 10rpx;
				font-size: 28rpx;
				text {
					font-size: 48rpx;
					font-weight: 700;
				}
			}
			.line {
				margin: 30rpx 0;
				width: 100%;
				height: 1rpx;
				background-color: rgba(255, 255, 255, .5);
			}
			.usdt {
				display: flex;
				justify-content: space-around;
				.usdt-item {
					.item-text {
						font-size: 26rpx;
					}
					.item-num {
						font-size: 40rpx;
					}
				}
			}
		}
		.circle {
			display: flex;
			justify-content: space-between;
			margin-top: 30rpx;
			.circle-item {
				width: 46%;
				height: 384rpx;
				padding: 40rpx 30rpx;
				background-image: url('/static/my/circle.png');
				background-repeat: no-repeat;
				background-size: 100% 100%;
				font-size: 28rpx;
				text-align: center;
				.item-title {
					font-weight: 700;
					padding: 15rpx 40rpx;
					border: 1rpx solid #ffffff;
					border-radius: 50rpx;
				}
				.survey {
					margin-top: 170rpx;
					background-color: #ffffff;
					border-radius: 40rpx;
					color: #333333;
					padding: 15rpx;
				}
			}
		}
	}
</style>